
<div id="content">
    <div id="title_content">Users</div>
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
            <?php echo $this->session->flashdata('error'); ?>
        </div>
    <?php endif; ?>

    <table class="list" width="100%">
        <thead>
            <tr>

                <th><?php echo 'Họ tên' ?></th>
                <th><?php echo 'email' ?></th>
                <th><?php echo 'role' ?></th>

                <th colspan="2">Action</th>
            </tr>
        </thead>
        <tbody>
            <?php
            if (isset($users_data) && !empty($users_data)):
                foreach ($users_data as $aRows) {
                    ?>
                    <tr>


                        <td><?php echo $aRows['ho_ten']; ?></td>
                        <td><?php echo $aRows['email']; ?></td>
                        <td><?php echo $aRows['role_name']; ?></td>
                        <td width="30px"><a class="confirm_delete" href="<?php echo site_url('admin/xoa_user/' . $aRows['id']) ?>"><img src="<?php echo base_url() ?>assets/admin/images/supprimer.png" alt="supprimer"/></a></td>
                    </tr>
                <?php } ?>
            <?php endif; ?>
        </tbody>
    </table>
    <div class="delete_button">
        <table width="100%">
            <tr>

                <td align="right"><?php echo $pagination; ?></td>
            </tr>
        </table>
    </div>
    <!--END delete_button-->

</div>
<!--END content-->
